<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var arr=[1,2,34,11,2,1,34,10,10,200,200]
        var newArr=Array.from(new Set(arr))
        console.log(newArr,newArr[0]);
        
        var arr2=[{value:1},{value:1},{value:2},{value:2}]
        var newArr2=Array.from(new Set(arr2))
        console.log(newArr2);
        
    </script>
</body>
</html>